\documentclass[twoside]{book}

% Packages required by doxygen
\usepackage{fixltx2e}
\usepackage{calc}
\usepackage{doxygen}
\usepackage[export]{adjustbox} % also loads graphicx
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage{multirow}
\PassOptionsToPackage{warn}{textcomp}
\usepackage{textcomp}
\usepackage[nointegrals]{wasysym}
\usepackage[table]{xcolor}

% Font selection
\usepackage[T1]{fontenc}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
\usepackage{amssymb}
\usepackage{sectsty}
\renewcommand{\familydefault}{\sfdefault}
\allsectionsfont{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}
\renewcommand{\DoxyLabelFont}{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}
\newcommand{\+}{\discretionary{\mbox{\scriptsize$\hookleftarrow$}}{}{}}

% Page & text layout
\usepackage{geometry}
\geometry{%
  letterpaper,%
  top=2.5cm,%
  bottom=2.5cm,%
  left=2.5cm,%
  right=2.5cm%
}
\tolerance=750
\hfuzz=15pt
\hbadness=750
\setlength{\emergencystretch}{15pt}
\setlength{\parindent}{0cm}
\setlength{\parskip}{3ex plus 2ex minus 2ex}
\makeatletter
\renewcommand{\paragraph}{%
  \@startsection{paragraph}{4}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@parafont%
  }%
}
\renewcommand{\subparagraph}{%
  \@startsection{subparagraph}{5}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@subparafont%
  }%
}
\makeatother

% Headers & footers
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhead[LE]{\fancyplain{}{\bfseries\thepage}}
\fancyhead[CE]{\fancyplain{}{}}
\fancyhead[RE]{\fancyplain{}{\bfseries\leftmark}}
\fancyhead[LO]{\fancyplain{}{\bfseries\rightmark}}
\fancyhead[CO]{\fancyplain{}{}}
\fancyhead[RO]{\fancyplain{}{\bfseries\thepage}}
\fancyfoot[LE]{\fancyplain{}{}}
\fancyfoot[CE]{\fancyplain{}{}}
\fancyfoot[RE]{\fancyplain{}{\bfseries\scriptsize Generated by Doxygen }}
\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated by Doxygen }}
\fancyfoot[CO]{\fancyplain{}{}}
\fancyfoot[RO]{\fancyplain{}{}}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\chaptermark}[1]{%
  \markboth{#1}{}%
}
\renewcommand{\sectionmark}[1]{%
  \markright{\thesection\ #1}%
}

% Indices & bibliography
\usepackage{natbib}
\usepackage[titles]{tocloft}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{5}
\makeindex

% Hyperlinks (required, but should be loaded last)
\usepackage{ifpdf}
\ifpdf
  \usepackage[pdftex,pagebackref=true]{hyperref}
\else
  \usepackage[ps2pdf,pagebackref=true]{hyperref}
\fi
\hypersetup{%
  colorlinks=true,%
  linkcolor=blue,%
  citecolor=blue,%
  unicode%
}

% Custom commands
\newcommand{\clearemptydoublepage}{%
  \newpage{\pagestyle{empty}\cleardoublepage}%
}

\usepackage{caption}
\captionsetup{labelsep=space,justification=centering,font={bf},singlelinecheck=off,skip=4pt,position=top}

%===== C O N T E N T S =====

\begin{document}

% Titlepage & ToC
\hypersetup{pageanchor=false,
             bookmarksnumbered=true,
             pdfencoding=unicode
            }
\pagenumbering{roman}
\begin{titlepage}
\vspace*{7cm}
\begin{center}%
{\Large E\+S\+P8266 I\+L\+I9341 display support code with printf sources, wire-\/frame viewer and custom fonts \\[1ex]\large 1.\+0 }\\
\vspace*{1cm}
{\large Generated by Doxygen 1.8.11}\\
\end{center}
\end{titlepage}
\clearemptydoublepage
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}
\hypersetup{pageanchor=true}

%--- Begin generated contents ---
\chapter{index page}
\label{index}\hypertarget{index}{}\input{index}
\chapter{C\+O\+P\+Y\+R\+I\+G\+HT}
\label{md_COPYRIGHT}
\hypertarget{md_COPYRIGHT}{}
\input{md_COPYRIGHT}
\chapter{R\+E\+A\+D\+ME}
\label{md_README}
\hypertarget{md_README}{}
\input{md_README}
\chapter{font\+\_\+to\+\_\+svg}
\label{md_vfonts_README}
\hypertarget{md_vfonts_README}{}
\input{md_vfonts_README}
\chapter{Todo List}
\label{todo}
\hypertarget{todo}{}
\input{todo}
\chapter{Data Structure Index}
\input{annotated}
\chapter{File Index}
\input{files}
\chapter{Data Structure Documentation}
\input{struct____file}
\input{struct__bdffile}
\input{struct__ETSTIMER__}
\input{struct__FDID}
\input{struct__font}
\input{struct__fontc}
\input{struct__fontinfo}
\input{struct__fontspecs}
\input{struct__mat}
\input{struct__printf__t}
\input{struct__sdev}
\input{struct__xpt2046}
\input{structbuffer__t}
\input{structcont__}
\input{structDIR}
\input{structdirent}
\input{structdst__t}
\input{structETSEventTag}
\input{structex__regs}
\input{unionf__t}
\input{structFATFS}
\input{structFIL}
\input{structFILINFO}
\input{structheader__t}
\input{structhinfo__t}
\input{structmem__t}
\input{structmime__t}
\input{structp2__int16__t}
\input{structp3__int16__t}
\input{structp__ch__t}
\input{structpath__t}
\input{structpoint}
\input{structputbuff}
\input{structqueue__t}
\input{structrwbuf__t}
\input{structSDIO__CTRL}
\input{structstat}
\input{structTIMERS}
\input{structtimespec}
\input{structtimeval}
\input{structtimezone}
\input{structtm}
\input{unionuint32__t__bytes}
\input{structutimbuf}
\input{structwindow}
\input{structwire__e}
\input{structwire__p}
\input{structxpt2046__win}
\chapter{File Documentation}
\input{cal__dex_8c}
\input{ili9341__adafruit_8c}
\input{ili9341__adafruit_8h}
\input{COPYRIGHT_8md}
\input{cordic_8c}
\input{cordic_8h}
\input{cordic2c__inc_8h}
\input{cordic2c_8c}
\input{font_8c}
\input{display_2font_8h}
\input{fonts_2font_8h}
\input{fonts_8h}
\input{ili9341_8c}
\input{ili9341_8h}
\input{ili9341__hal_8c}
\input{tft__printf_8c}
\input{tft__printf_8h}
\input{vfont_8c}
\input{vfont_8h}
\input{vfonts_8h}
\input{earth2wireframe_8c}
\input{bits_8h}
\input{cpu_8h}
\input{debug_8c}
\input{debug_8h}
\input{flash_8c}
\input{flash_8h}
\input{hal_8c}
\input{hal_8h}
\input{hspi_8c}
\input{hspi_8h}
\input{rtc_8c}
\input{rtc_8h}
\input{system_8c}
\input{system_8h}
\input{uart_8c}
\input{uart_8h}
\input{esp8266_2uart__register_8h}
\input{include_2uart__register_8h}
\input{diskio_8c}
\input{diskio_8h}
\input{mmc_8c}
\input{mmc_8h}
\input{mmc__hal_8c}
\input{mmc__hal_8h}
\input{fatfs_8h}
\input{fatfs__sup_8c}
\input{fatfs__sup_8h}
\input{fatfs__tests_8c}
\input{fatfs__tests_8h}
\input{ff_8c}
\input{ff_8h}
\input{ffconf_8h}
\input{integer_8h}
\input{cc932_8c}
\input{cc936_8c}
\input{cc949_8c}
\input{cc950_8c}
\input{ccsbcs_8c}
\input{syscall_8c}
\input{unicode_8c}
\input{bdffont2c_8c}
\input{bdffontutil_8c}
\input{bdffontutil_8h}
\input{bdfview_8c}
\input{spi__register_8h}
\input{user__config_8h}
\input{matrix_8c}
\input{matrix_8h}
\input{queue_8c}
\input{queue_8h}
\input{sort_8c}
\input{sort_8h}
\input{stringsup_8c}
\input{stringsup_8h}
\input{time_8c}
\input{time_8h}
\input{timer_8c}
\input{timer_8h}
\input{timer__hal_8c}
\input{timetests_8c}
\input{network_8c}
\input{network_8h}
\input{buffer_8c}
\input{buffer_8h}
\input{posix_8c}
\input{posix_8h}
\input{posix__tests_8c}
\input{posix__tests_8h}
\input{mathio_8c}
\input{mathio_8h}
\input{n2a_8c}
\input{printf_8c}
\input{sscanf_8c}
\input{test__printf_8c}
\input{README_8md}
\input{vfonts_2README_8md}
\input{send_8c}
\input{server_8c}
\input{server_8h}
\input{testflash_8c}
\input{user__main_8c}
\input{web_8c}
\input{web_8h}
\input{cube__data_8h}
\input{earth__data_8h}
\input{wire_8c}
\input{wire_8h}
\input{wire__types_8h}
\input{calibrate_8c}
\input{calibrate_8h}
\input{xpt2046_8c}
\input{xpt2046_8h}
\input{cont_8h}
\input{cont__util_8c}
\input{ets__sys_8h}
\input{user__task_8c}
\input{user__task_8h}
%--- End generated contents ---

% Index
\backmatter
\newpage
\phantomsection
\clearemptydoublepage
\addcontentsline{toc}{chapter}{Index}
\printindex

\end{document}
